<?php
namespace app\task\model;
use app\common\model\StoreUser as StoreUserModel;
use app\common\model\WebSet as WebSetModel;

/**
 * 商户模型
 */
class StoreUser extends StoreUserModel
{
    /**
     * 新增
     */
    public function add($data)
    {
        return $this->allowField(true)->save($data);
    }
	
	/**
     * 更新记录
     */
    public function edit($data)
    {
        return $this->allowField(true)->save($data) !== false;
    }
	
	/**
     * 更新记录
     */
    public function unSubscribe()
    {
        return $this->save(['wechat_open_id' => '']) !== false;
    }
}
